/*
 * @Author: @yzcheng
 * @Date: 2021-03-02 14:12:01
 * @Version: 1.0
 * @LastEditors: @yzcheng
 * @Description:
 * @LastEditTime: 2021-03-27 12:36:46
 */
import request from '@/utils/request'
import { CHECC_API_PROCESS } from '@/constants/proxy'

/**
 *  下载文件
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function flowTaskList(data, { pageNum, pageSize }) {
  return request({
    url: CHECC_API_PROCESS + `/act/his/page?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data,
  })
}
/**
 *  提交
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function updateTask(data) {
  return request({
    url: CHECC_API_PROCESS + `/act/task/updateTask`,
    method: 'post',
    data,
  })
}
/**
 *  转办
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function trunTask(data) {
  return request({
    url: CHECC_API_PROCESS + `/act/task/trunTask`,
    method: 'post',
    data,
  })
}
/**
 *  转办
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function delegateTask(data) {
  return request({
    url: CHECC_API_PROCESS + `/act/task/delegateTask`,
    method: 'post',
    data,
  })
}
/**
 *  撤办
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function undoTask(params) {
  return request({
    url: CHECC_API_PROCESS + `/act/task/revocation`,
    method: 'get',
    params,
  })
}
/**
 *  重办
 *
 * @export
 * @param {*} params
 * @return {*}
 */
export function againTask(data) {
  return request({
    url: CHECC_API_PROCESS + `/act/task/again`,
    method: 'get',
    data,
  })
}
